﻿using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NDF.Test.DataAccess.NdfEFTest
{
    [TestClass]
    public class NdfEFTestClass
    {
        [TestMethod]
        public void TestMethod1()
        {
            using (NdfTestContext db = new NdfTestContext())
            {
                db.TestEntities.Add(new TestEntity { Flag = Framework.Models.Entities.EntityFlag.Deleted });
                db.SaveChanges();

                //var users = from u in db.Users select u;
                var users = from u in db.TestEntities select u;
                foreach (var user in users)
                {
                    Console.WriteLine(user.Name);
                }
            }
        }
    }
}
